<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .span {
            color: red;
            border: 1px solid blue;
            padding: 0.5rem;
        }
        .img {
            width: 200px;
            border: 2px solid green;
            border-radius: 1rem;
        }
    </style>
</head>
<body>
<h1>这是主页index.html</h1>
<h4>当前线程：[[${thread}]]</h4>

<div>
    <h3>Thymeleaf适合【前后端分离】相比JSP</h3>
    <span class="span" th:text="${user?.username}">隔壁老王不现身【前端做设计的占位符】</span>
    <img class="img" alt="head" src="../static/images/head.jpg" th:src="@{/images/wx.jpg}"/>
    <p>
        你传递的参数：<span th:text="${param.name}"></span>
        错误信息：<span style="color: red;" th:text="${param.error}"></span>
        <br/>
        错误信息：<span style="color: red;" th:text="${error}"></span>
    </p>
    
    <!--<p>错误的内容：[[${param.name}]]</p>-->
    <!--/*<p>错误的内容：[[${user.name}]]</p>*/-->
</div>

</body>
</html>